#ifndef _BSP_ADC_H_
#define _BSP_ADC_H_
#include "stdint.h"
#include "adc.h"

#define ADC1_PA0	ADC_CHANNEL_0
#define ADC1_PA1	ADC_CHANNEL_1
#define ADC1_PA2	ADC_CHANNEL_2
#define ADC1_PA3	ADC_CHANNEL_3
#define ADC1_PA4	ADC_CHANNEL_4
#define ADC1_PA5	ADC_CHANNEL_5
#define ADC1_PA6	ADC_CHANNEL_6
#define ADC1_PA7	ADC_CHANNEL_7
#define ADC1_PA8	ADC_CHANNEL_8
#define ADC1_PA9	ADC_CHANNEL_9
#define ADC1_PC4	ADC_CHANNEL_14
#define ADC1_PC5	ADC_CHANNEL_15

uint16_t Get_Adc(uint32_t ch)   ;
uint16_t Get_Adc_Average(uint32_t ch,uint8_t times);
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc);

#endif
